package com.tiger.cloud.service.system;

import com.tiger.cloud.common.view.SpringUtils;
import com.tiger.cloud.model.system.SysScheduleJob;
import com.tiger.cloud.service.crm.IMailListService;
import com.tiger.cloud.util.DateTimeUtil;

public class TaskExcutor {

	public void run1(SysScheduleJob job) throws Exception {
		System.out.println("-----TaskExcutor------run1-----------"+DateTimeUtil.formatDateTimetoString(DateTimeUtil.getSystemDate()));
	}

	public void run2(SysScheduleJob job) throws Exception {
		System.out.println("-----TaskExcutor-----run2------------"+DateTimeUtil.formatDateTimetoString(DateTimeUtil.getSystemDate()));
	}

	public void run3(SysScheduleJob job) throws Exception {
		System.out.println("-----TaskExcutor-----run3------------"+DateTimeUtil.formatDateTimetoString(DateTimeUtil.getSystemDate()));
	}

	/**
	 * 运行手机通讯录匹配
	 */
	public void runMailListsMatch(SysScheduleJob job) throws Exception {
		System.out.println("--------------------开始启动数据匹配-------------------");
		IMailListService mailListService=SpringUtils.getBean(IMailListService.class);
		mailListService.runMailListsMatch(null);
	}

}